package at.fhooe.mcm12.java.sensors.data;

public class LightIntensity extends SensorValue{

	private double m_intensity;
	private String m_unit;
	
	public LightIntensity(double _intensity, String _unit, long _timestamp)
	{
		super(_timestamp, "lux");
		m_intensity = _intensity;
		m_unit = _unit;
	}
	
	public double getIntensity()
	{
		return m_intensity;
	}
	
	public void setIntensity(double _intensity)
	{
		m_intensity = _intensity;
	}
	
	public String toString()
	{
		return String.format("%.2f " + m_unit, m_intensity);
	}
}
